<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>客服人员修改页面</title>

<link rel="stylesheet" href="/myresource/css/index2.css" type="text/css"></link>
<script type="text/javascript" src="/webjars/jquery/3.2.1/dist/jquery.min.js"></script>
<script type="text/javascript" src="/myresource/My97DatePicker/WdatePicker.js"></script>
</head>
<script type="text/javascript">
	var id="[[${id}]]";
	$(function(){
		$.post("/getUpdateData",{id:id},function(obj){
			//obj是形式参数《-----》控制层相应的map
			//回显对象信息   根据map中的键获取值   map.put("goods", goods);
			var u=obj.user;
			$("#uname").val(u.uname);
			$("#pwd").val(u.pwd);
			$("#age").val(u.age);
			$("#email").val(u.email);
			$("#createTime").val(u.createTime);
			//下拉列表，品牌的回显
		},"json");
	});

</script>
<body>
	
	<form  th:action="@{/updateUser}" method="post" enctype="multipart/form-data">
		<input type="hidden" name="id" id="id" th:value="${id}" />
		<table>
			<tr>
				<td>
					客服名：<input type="text" name="uname" id="uname" />
				</td>
			</tr>
			<tr>
				<td>
					密码：<input type="text" name="pwd" id="pwd" />
				</td>
			</tr>
			<tr>
				<td>
					年龄：
					<input type="text" name="age" id="age" />
				</td>
			</tr>
			<tr>
				<td>
					邮箱：
					<input type="text" name="email" id="email" />
				</td>
			</tr>
			<tr>
				<td>
					日期：<input type="text" name="createTime" id="createTime" readonly="readonly"  onclick="WdatePicker()" />
				</td>
			</tr>
			<tr>
				<td colspan="11"><input type="submit"  value="确认修改"/></td>
			</tr>
		</table>
	</form>
</body>
</html>